#ifndef VADBG_H
#define VADBG_H

#include <fstream>

namespace vadbg {
void dumpString(std::string path, std::string str) {
    std::ofstream fin;
    fin.open(path.c_str(), std::ios_base::out);
    fin << str.c_str();
    fin.close();
}

void dumpBuffer(std::string path, uint8_t *pBuffer, int bufSize) {
    std::ofstream fin;
    fin.open(path.c_str(), std::ios_base::out | std::ios_base::binary);
    fin.write((char *)pBuffer, bufSize);
    fin.close();
}
}

#endif // VADBG_H
